home *** CD-ROM | disk | FTP | other *** search
- if ![load $number]
- if [query $number "Enter your dial up phone number"]
- save $number
- end
- end
- if ![load $modemsetup]
- if [query $modemsetup "Enter your modem setup string"]
- save $modemsetup
- end
- end
-
- %attempts = 10
- #---------------------------------------
- # initialize modem
- output "atz"\13
- if ! [input 10 OK\n]
- display "Modem is not responding"\n
- abort
- end
- #
- # setup our modem commands
- #
- output $modemsetup\13
- input 10 OK\n
- #
- # send phone number
- #
- %n = 0
- repeat
- if %n = %attempts
- display "Too many dial attempts"\n
- abort
- end
- output "atdt"$number\13
- %ok = [input 60 CONNECT]
- %n = %n + 1
- until %ok
- #output \e
-